package mn.idax.exchange.otc.common.mq.producer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Component;

/**
 * @Auther: dison
 * @Date: 2018/9/10 13:47
 * @Description:
 */
@Component
public class JmsLogProducer {

    @Autowired
    private JmsMessagingTemplate jmsMessagingTemplate;

    public void pushLogMessage(String topic ,String message){
        this.jmsMessagingTemplate.convertAndSend(topic,message);
    }

}
